<template>
  <div class="electron-header-drag h-4.5rem relative flex bg-#F3F3F3 items-center justify-between">
    <ProjectName />
    <div class="flex h-full">
      <Win v-if="hasElectron" />
    </div>
  </div>
</template>
<script lang="ts" setup>
import ProjectName from './components/projectName.vue';
import Win from './components/win.vue';

import { isElectron } from '@/utils/is';

const hasElectron = isElectron();
</script>
<style lang="scss" scoped>
/* electron 拖拽样式 */
.electron-header-drag {
  -webkit-app-region: drag;
}
</style>
